import { createApp } from "vue";
import { createPinia } from "pinia";
const pinia = createPinia();

import App from "./App.vue";
// import store from "./store/index";
import router from "./router/index";
/* 导入VANT */
import Vant, { Lazyload } from "vant";
import "./assets/reset.min.css";
import "amfe-flexible";
import "vant/lib/index.css";
/* 处理最大宽度 */
import { handleMaxWidth } from "./assets/utils";
handleMaxWidth();
window.addEventListener("resize", handleMaxWidth);

const app = createApp(App);
app.use(Vant);
app.use(Lazyload, {
  lazyComponent: true,
});
// app.use(store);
app.use(router);
app.mount("#app");
app.use(pinia);
